/*
 * @Author: szx
 * @Date: 2022-02-23 12:36:01
 * @LastEditTime: 2022-02-23 12:44:08
 * @Description:
 * @FilePath: \leetcode\1900-1999\1985\1985.js
 */
/**
 * @param {string[]} nums
 * @param {number} k
 * @return {string}
 */
var kthLargestNumber = function (nums, k) {
    return nums.sort((a, b) => b.length - a.length || (b > a ? 1 : -1))[k - 1];
};
console.log(kthLargestNumber(['3', '6', '11', '1'], 4));
